package unitTool;

import com.alibaba.fastjson.JSON;
import com.alipay.api.AlipayApiException;
import com.alipay.api.AlipayClient;
import com.alipay.api.DefaultAlipayClient;
import com.alipay.api.request.AlipayOpenPublicTemplateMessageIndustryModifyRequest;
import com.alipay.api.request.AlipayTradePagePayRequest;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class AlipayConfig {
    @Value("2016092400588095")
    private String APPID;

    @Value("https://openapi.alipaydev.com/gateway.do")
    private String openApiDomain;

    @Value("MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDipXtYMp5F3+559hSQPBwtghQpcUQZdSsloZRIkYa8BjG/oQOaLWpC0SsYccIL+WHIx/JoYsSzQwJ+beOU15s7rtlmPSLb2fYOoo5HtQVaAJWA7ulA7PtNlD3k9aAwm/jasUPdX4rSpIdOFr9u052lLnZX38kNlCRSHmVdskPJDVLEhstYn9c84rqaGhiC3Gf+p+dsqSwWACIqo6Cq8+Y0duEDqMRqjWMFRCdz5EJldyvctwe7h+q8Rq8JD/yCGi4MoKkUgtkWegBEsQf+i4lkjuWCkJFiSPMRQQiKfQ8qdBpIYSHLiXqKS0g0ZPL/AgKZ22C3ufzFgMsvnmnHKAI9AgMBAAECggEAA0nxc0MwxsTMGhr3C2zD3+kuT7ekDFaF7MLeevsZoGral/RHMBqOmy+b13v3G+NfhuFX5CnivtMvGxSPI97JEuGjp/clJVmRV38GX4YB8N9nS/qridSmhOasy0DBNVNeFhZSbMjxI8Ndb0WnO314oSf+caH+seK/cC2evPBUSXuQBK+R+Dt7wg5VzPVAxGPiNfYr+loe2gCVJ9G0ubPC8DuEOd+a4JGwGHJGuNYip7PKyEdLqj9qoAo8cH1DM0xyd2mkKet0f4QC8DhRVd8GK/OtDAffYRmxC7MEIE7Xn05Ydrw2866a3H0LpAQn3PUd30HvG67kzH+7LyQBMy8GwQKBgQD3G2bzBd8iT46try9IVgMT/vEHdab9OtOUMTXTD47ClXPkbxclpPOzgN5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lXbJDyQ1SxIbLWJ/XPOK6mhoYgtxn/qfnbKksFgAiKqOgqvPmNHbhA6jEao1jBUQnc+RCZXcr3LcHu4fqvEavCQ/8ghouDKCpFILZFnoARLEH/ouJZI7lgpCRYkjzEUEIin0PKnQaSGEhy4l6iktINGTy/wICmdtgt7n8xYDLL55pxygCPQIDAQAB")
    private String alipayPublicKey;

    @Value("2088102177109866")
    private String uid;

    @Value("RSA2")
    private String RSA2;

    @Override
    public String toString() {
        return "AlipayConfig{" +
                "APPID='" + APPID + '\'' +
                ", openApiDomain='" + openApiDomain + '\'' +
                ", appPrivateKey='" + appPrivateKey + '\'' +
                ", CHARSET='" + CHARSET + '\'' +
                ", alipayPublicKey='" + alipayPublicKey + '\'' +
                ", uid='" + uid + '\'' +
                ", RSA2='" + RSA2 + '\'' +
                '}';
    }

    public String getAPPID() {
        return APPID;
    }

    public String getOpenApiDomain() {
        return openApiDomain;
    }

    public String getAppPrivateKey() {
        return appPrivateKey;
    }

    public String getCHARSET() {
        return CHARSET;
    }

    public String getAlipayPublicKey() {
        return alipayPublicKey;
    }

    public String getUid() {
        return uid;
    }

    public String getRSA2() {
        return RSA2;
    }

}
